﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommonUtils;

namespace MudEngine.Parsing.AST
{
    public class InheritDeclaration : AstNode
    {
        public string Inherit { get; private set; }

        public Program Program { get; set; }

        public InheritDeclaration(string inherit)
        {
            this.Inherit = inherit.Substring(1, inherit.Length - 2).UnescapeString(); ;
        }

        public override void AcceptVisitor<C>(IAstNodeVisitor<C> visitor, C ctx)
        {
            visitor.VisitInheritDeclaration(this, ctx);
        }
    }
}
